import { AdManager } from "../ads/AdManager";
import { EVENT_NAME_ENUM } from "../base/EnumIndex";
import { AudioManager } from "../manager/AudioManager";
import { EventManager } from "../manager/EventManager";
import { UIManager } from "../manager/UIManager";

const { ccclass } = cc._decorator;
@ccclass
export default class addShortcutUI extends cc.Component {

    clickBtnClose() {
        AudioManager.playClick();
        UIManager.ins.close();
    }

    // 一键添加界面 确认添加按钮
    clickBtnAddTo() {
        AudioManager.playClick();
        AdManager.addTable(() => EventManager.ins.emit(EVENT_NAME_ENUM.HIDE_ADD_SHORTCUT_BTN));
        UIManager.ins.close();
    }

}
